package it.univpm.diiga.memorysim.kernel.shared;

import it.univpm.diiga.memorysim.kernel.IHDDElement;

import java.util.ArrayList;
import java.util.List;

// settore dell'HDD occupati
public class FileElement implements IHDDElement {
	 
	private int blockIndex=-1;
	private long start,end;
	private List<Integer> indice=new ArrayList<Integer>();	//un elemento nel caso della concatenata, + nel caso dell'indicizzata
	
	public FileElement(int id){		
		this.blockIndex=id;		
	}
	
	public FileElement(int id, List<Integer> indice){
		this.blockIndex=id;
		this.indice=indice;		
	}
	
	public FileElement(long start, long end){
		this.start=start;
		this.end=end;		
	}
	
	
	public List<Integer> getIndice(){
		return this.indice;
	}


	@Override
	public long getEnd() {
		// TODO Auto-generated method stub
		return this.end;
	}

	@Override
	public long getStart() {
		// TODO Auto-generated method stub
		return this.start;
	}

	@Override
	public void setEnd(long end) {
		// TODO Auto-generated method stub
		this.end=end;
	}

	@Override
	public void setStart(long start) {
		// TODO Auto-generated method stub
		this.start=start;
	}

	
}
